<!-- 天猫旗舰店概况日表 -->
<template>
  <div class="mainTable">
    <BaseTable :query="query" :tableItems="tableItems" :updateItems="updateItems" :optionList="optionList" :methodParam="methodParam" :Btn="Btn" menuName="logRecord" pageName="mainTable" />
  </div>
</template>
<script>
import dayjs from "dayjs"
import BaseTable from "../../table/tmqjdgkrbTable.vue";
export default {
  name: "tmqjdgkrb",
  data() {
    return {
      //后端人员修改-S
      //查询参数
      query: [
        {
          prop: "searchTime", type: "time", placeholder: "",
          value: GlobalSetting.fakeTime ?? [dayjs(new Date()).add(-1, 'days').format("YYYY-MM-DD") , dayjs(new Date()).format("YYYY-MM-DD")],
          name: "查询时间"
        },
      ],
      //表格表头
      tableItems: [
        { name: "时间（日）", prop: "时间（日）"  ,align: "left"  },
        { name: "直播佣金比例", prop: "直播佣金比例"  },
        { name: "直播坑位费", prop: "直播坑位费"  },
        { name: "刷单金额", prop: "刷单金额"  }
      ],
      //增删查改的对象属性
      updateItems: [//edit
        { name: "时间（日）", prop: "statTime", type: "time", },
        { name: "直播佣金比例", prop: "livingCommissionRate", type: "input" },
        { name: "直播坑位费", prop: "livingSlotCost", type: "input" },
        { name: "刷单金额", prop: "fakeOrderAmount", type: "input" },
      ],
      //增删查改的对象属性的下拉select或者级联cascader
      optionList: {
        unit: [
          {label: "日", value: "日" },
          {label: "周", value: "周" },
          {label: "月", value: "月" },
          {label: "年", value: "年" },
        ]
      },
      //增删查改方法参数
      methodParam: "getTmallFlagshipStoreOverviewDayInput",
      //自定义btn功能
      Btn: {
        search: true, //查询按钮
        add: false, //添加按钮
        edit: false, //回复按钮
        detail: false, //详情按钮
        delete: false, //删除按钮
        deletes: false, //批量删除按钮
        export: true, //导出按钮
        templateDownload: false, //模板下载按钮
        upload: false, //上传按钮
      },
      //后端人员修改-E
    };
  },
  components: {
    BaseTable
  },
  created() {
    let _this = this
  }
};
</script>
<style scoped lang="less">
.mainTable {
  background-color: #f1f2f9;
}
</style>
  